package com.wufan.day01;

/**
 * @author SongWufan
 * @date 2021/6/28 23:59
 */
public class Solution {
    public static int Fibonacci(int n) {
        if(n == 0) {
            return 0;
        }
        if(n == 1) {
            return 1;
        }
        return Fibonacci(n-2) + Fibonacci(n-1);
    }

    public static void main(String[] args) {
        System.out.println(Fibonacci(4));
    }
}
